package com.wox.action;

import com.wox.config.ActionContext;

/**
 * All of the wox action must extends this abstract class and override execute method.<br/> 
 * And the action handler will call the execute when it's requested.
 * @author David zhang
 *
 */
public abstract class WoxAction {
	   public static final String INPUT="input";
	   public static final String SUCCESS="success";
	   public static final String FAIL="fail";
	   public static final String ERROR="error";
	   public static final String NONE="none";
   	   public static final String FORWARD="forward";
   	   
   	   /** finish 将进入直接处理阶段  */
	   public static final String JSONBACK="jsonBack_wox";
	   
	   public static final ThreadLocal<ActionContext> local=new ThreadLocal<ActionContext>();
   	   private JsonData jsonData;
   	   
   	  public WoxAction()
   	  {
   		
   	  }
   
	public JsonData getJsonData() {
		return jsonData;
	}



	public void setJsonData(JsonData jsonData) {
		this.jsonData = jsonData;
	}



	public abstract String excute() throws Exception;
}
